package com.springframework.factoryBean_t;

import com.springframework.t.person.User;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class FactoryBeanRun {
    public static void main(String[] args) {
        ApplicationContext context = new ClassPathXmlApplicationContext("com.springframework/factoryBean/factoryBean.xml");
        User user = (User) context.getBean("user");
        System.out.println(user);
        user.add();
    }
}
